package com.symaster.common.geom.show.node.element.menu;

import com.intellij.uiDesigner.core.GridConstraints;
import com.intellij.uiDesigner.core.GridLayoutManager;
import com.intellij.uiDesigner.core.Spacer;
import com.symaster.common.geom.show.node.api.LeftMenu;

import javax.swing.*;
import java.awt.*;

/**
 * @author yinmiao
 * @version 2023/7/4
 */
public class BasicAttributes extends LeftMenu {

    private JPanel root_panel;
    private JLabel node_x_text;
    private JLabel node_y_text;
    private JLabel node_width_text;
    private JLabel node_height_text;
    private JLabel node_point_text;
    private JLabel id_text;
    private JLabel other_message_text;
    private JLabel similarity_text;

    @Override
    public String title() {
        return "基本属性";
    }

    @Override
    public JComponent body() {
        return root_panel;
    }

    {
// GUI initializer generated by IntelliJ IDEA GUI Designer
// >>> IMPORTANT!! <<<
// DO NOT EDIT OR ADD ANY CODE HERE!
        $$$setupUI$$$();
    }

    /**
     * Method generated by IntelliJ IDEA GUI Designer
     * >>> IMPORTANT!! <<<
     * DO NOT edit this method OR call it in your code!
     *
     * @noinspection ALL
     */
    private void $$$setupUI$$$() {
        root_panel = new JPanel();
        root_panel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));
        final JPanel panel1 = new JPanel();
        panel1.setLayout(new BorderLayout(0, 0));
        root_panel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
        final JPanel panel2 = new JPanel();
        panel2.setLayout(new BorderLayout(0, 0));
        panel2.setPreferredSize(new Dimension(0, 0));
        panel1.add(panel2, BorderLayout.WEST);
        final JPanel panel3 = new JPanel();
        panel3.setLayout(new BorderLayout(0, 0));
        panel3.setPreferredSize(new Dimension(0, 0));
        panel1.add(panel3, BorderLayout.EAST);
        final JPanel panel4 = new JPanel();
        panel4.setLayout(new GridLayoutManager(8, 1, new Insets(0, 0, 0, 0), -1, -1));
        panel1.add(panel4, BorderLayout.CENTER);
        final JToolBar toolBar1 = new JToolBar();
        panel4.add(toolBar1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));
        final JLabel label1 = new JLabel();
        label1.setText("x");
        toolBar1.add(label1);
        final JLabel label2 = new JLabel();
        label2.setText("   ");
        toolBar1.add(label2);
        node_x_text = new JLabel();
        node_x_text.setText("");
        toolBar1.add(node_x_text);
        final JToolBar toolBar2 = new JToolBar();
        panel4.add(toolBar2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));
        final JLabel label3 = new JLabel();
        label3.setText("y");
        toolBar2.add(label3);
        final JLabel label4 = new JLabel();
        label4.setText("   ");
        toolBar2.add(label4);
        node_y_text = new JLabel();
        node_y_text.setText("");
        toolBar2.add(node_y_text);
        final JToolBar toolBar3 = new JToolBar();
        panel4.add(toolBar3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));
        final JLabel label5 = new JLabel();
        label5.setText("width");
        toolBar3.add(label5);
        final JLabel label6 = new JLabel();
        label6.setText("   ");
        toolBar3.add(label6);
        node_width_text = new JLabel();
        node_width_text.setText("");
        toolBar3.add(node_width_text);
        final JToolBar toolBar4 = new JToolBar();
        panel4.add(toolBar4, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));
        final JLabel label7 = new JLabel();
        label7.setText("height");
        toolBar4.add(label7);
        final JLabel label8 = new JLabel();
        label8.setText("   ");
        toolBar4.add(label8);
        node_height_text = new JLabel();
        node_height_text.setText("");
        toolBar4.add(node_height_text);
        final JToolBar toolBar5 = new JToolBar();
        panel4.add(toolBar5, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));
        final JLabel label9 = new JLabel();
        label9.setText("point size");
        toolBar5.add(label9);
        final JLabel label10 = new JLabel();
        label10.setText("   ");
        toolBar5.add(label10);
        node_point_text = new JLabel();
        node_point_text.setText("");
        toolBar5.add(node_point_text);
        final JToolBar toolBar6 = new JToolBar();
        panel4.add(toolBar6, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));
        final JLabel label11 = new JLabel();
        label11.setText("id");
        toolBar6.add(label11);
        final JLabel label12 = new JLabel();
        label12.setText("   ");
        toolBar6.add(label12);
        id_text = new JLabel();
        id_text.setText("");
        toolBar6.add(id_text);
        final JToolBar toolBar7 = new JToolBar();
        panel4.add(toolBar7, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));
        final JLabel label13 = new JLabel();
        label13.setText("text");
        toolBar7.add(label13);
        final JLabel label14 = new JLabel();
        label14.setText("   ");
        toolBar7.add(label14);
        other_message_text = new JLabel();
        other_message_text.setText("");
        toolBar7.add(other_message_text);
        final JToolBar toolBar8 = new JToolBar();
        panel4.add(toolBar8, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));
        final JLabel label15 = new JLabel();
        label15.setText("similarity");
        toolBar8.add(label15);
        final JLabel label16 = new JLabel();
        label16.setText("   ");
        toolBar8.add(label16);
        similarity_text = new JLabel();
        similarity_text.setText("");
        toolBar8.add(similarity_text);
        final Spacer spacer1 = new Spacer();
        root_panel.add(spacer1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
    }

    /**
     * @noinspection ALL
     */
    public JComponent $$$getRootComponent$$$() {
        return root_panel;
    }
}
